package PTA.javaB;
import java.util.Scanner;
public class ex02 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int x=sc.nextInt();
        double y=sc.nextDouble();
        double z=Math.sqrt(x+y);
        System.out.println(x+y);
        System.out.println(z);

    }
}

       